// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/utils/request';

/**
 * 医生 列表
 * @param prams
 */
export function listDoctor(params) {
  return request({
    url: '/admin/doctor/list',
    method: 'get',
    params,
  });
}

// 查询医生信息详细
export function getDoctor(id) {
  return request({
    url: '/admin/doctor/' + id,
    method: 'get'
  })
}

// 新增医生信息
export function addDoctor(data) {
  return request({
    url: '/admin/doctor',
    method: 'post',
    data: data
  })
}

// 修改医生信息
export function updateDoctor(data) {
  return request({
    url: '/admin/doctor',
    method: 'put',
    data: data
  })
}

// 删除医生信息
export function delDoctor(id) {
  return request({
    url: '/admin/doctor/' + id,
    method: 'delete'
  })
}
